Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 6 - Sequence Grabber Channel Components / Sequence Grabber Channel Components Reference
Functions / Configuration Functions for Sound Channel Components


SGSetSoundRecordChunkSize

During record operations, the sequence grabber component and its sound channels work with groups of sound samples. These groups are referred to as chunks. By default, each chunk contains two seconds of sound data. Smaller chunks use less memory.

pascal ComponentResult SGSetSoundRecordChunkSize (SGChannel c,
                                                   long seconds);
c
Identifies the channel connection for this operation.
seconds
Specifies the number of seconds of sound data your sound channel component is to work with at a time. This parameter is set to a negative fixed-point number to specify a fraction of a second. For example, to set the duration to half a second, -0.5 is passed in.
DESCRIPTION
The sequence grabber component can control the amount of sound data in each chunk by calling the SGSetSoundRecordChunkSize function. The sequence grabber component specifies the number of seconds of sound data your channel is to work with at a time.

SPECIAL CONSIDERATIONS
The SGSetSoundRecordChunkSize function may return a fraction of a second (see the discussion of the seconds parameter above).

RESULT CODES
paramErr-50Invalid parameter specified
cantDoThatInCurrentMode-9402Request invalid in current mode

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help